12. Exercise: Sending to a Specific Phone
Sending to a Specific Phone
Sending to a Specific Phone
During this exercise, you'll get your phone's FCM registration id token. You can then use this token to send a message to your single device.
You can use the steps and example code mentioned in the video and linked here to help.
Exercise Code
Exercise: TFCM.03-Exercise-GetInstanceIdToken
Task Description:
Follow the TODOs to complete this exercise. For help, you can use the steps and example code mentioned at https://firebase.google.com/docs/cloud-messaging/android/client#manifest
Task Feedback:
Excellent work! Insert your token below to complete this exercise.
Solution: [TFCM.03-Solution-GetInstanceIdToken][Diff]
QUESTION:
Once you have your phone's FCM registration token, paste it here to complete the exercise.
SOLUTION:
NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer
Note If you’re having trouble getting your FCM token, try uninstalling and reinstalling the app.